package cn.jiyun.user.controller;

import cn.jiyun.user.pojo.Ware;
import cn.jiyun.user.service.WareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/ware")
public class WareController {
    @Autowired
    private WareService wareService;
    @RequestMapping("/findAll")
    public Ware findAll(){
        return wareService.findAll();
    }
}
